<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>调试程序</title>
<style type="text/css">
		div{
			text-align:center;
			line-height: 25px;
		}
	
	</style>
	<body>
		<div >
			<script type="text/javascript">
				var t=prompt("输入当前时间：","");
				if(t>6&&t<12){			
				document.write("上午好，欢迎来到贵美！");
				for(var i=0;i<t;i++){
				document.write("<img src='../img/smile.gif'/>");
				}					
				}else if(t>13&&t<20){
				 	document.write("下午好，欢迎来到贵美！");
					for (var k=0;k<t;k++) {
						document.write("<img src='../img/aftermoon.gif' />");
						}
						
					}else {
						
					 	document.write("晚上好，欢迎来到贵美！");
						for(var i=0;i<t;i++)
					document.write("<img src='../img/moon.gif' />");
					}
						
				
				
				
			</script>
			
		</div>
	</body>
</html>
